﻿//Write an expression that checks if given point (x,  y) is within a circle K(O, 5).

using System;

class IfPointIsWithinCircle
{
    static void Main()
    {
        Console.WriteLine("Input point coordinates");
        Console.Write("x = ");
        double pointX = double.Parse(Console.ReadLine());
        Console.Write("y = ");
        double pointY = double.Parse(Console.ReadLine());

        if ((pointX * pointX) + (pointY * pointY) <= 25)
            Console.WriteLine("Point ({0},{1}) is within a circle K(0,5).", pointX, pointY);
        else
            Console.WriteLine("Point ({0},{1}) is NOT within a circle K(0,5).", pointX, pointY);
    }
}
